Teacher Version

Hero Image
Hero Image

Looped Movement

Topics Covered

  • Loops

Virtual Robot: MoveLoopVR.rbg

Physical Robot: MoveLoop.rbg

Check Your Understanding

  1. What does the Loop do?
    1. Send the program "flow" back to an earlier point in the program, causing it to repeat some instructions
    2. Choose between two different possible sets of commands to run
    3. Repeat a branching decision quickly, to enable continuous control of the robot
    4. Run all the programs on the robot in a continuous cycle
  2. How do you add a loop to a program?
    1. Click the Loop block, then drag a box around the commands you want to put inside the Loop
    2. Select the blocks you want to put inside the Loop, then right-click and choose "Place in Loop"
    3. Right-click in an empty area and choose "Make Loop" from the menu that appears
    4. Drag a Loop into the program, then drag commands into it

ClosedClick here for the Answers

A. Send the program "flow" back to an earlier point in the program, causing it to repeat some instructions

D. Drag a Loop into the program, then drag commands into it

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.